<!DOCTYPE html>
<html>
  <!--
  Copyright 2014 The Chromium Authors. All rights reserved.
  Use of this source code is governed by a BSD-style license that can be
  found in the LICENSE file.
  -->
<head>
  <title>GLES2 Spinning Cube Example</title>
</head>

<body>

<embed id="plugin" type="application/x-ppapi-example-compositor"
  width="800" height="600"/> <br/>
  Total resource: <input id="total" > <br/>
  Free resource: <input id="free" > <br/>
<script type="text/javascript">
  var plugin = document.getElementById('plugin');
  var total = document.getElementById('total');
  var free = document.getElementById('free');
  plugin.addEventListener('message', function(message) {
    total.value = message.data.total_resource;
    free.value = message.data.free_resource;
  }, false);
</script>
</body>
</html>
